//
//  SandDetailCollectionHeaderView.m
//  YIJU2.0-HD
//
//  Created by 陈柏兵 on 16/5/9.
//  Copyright © 2016年 张金国. All rights reserved.
//

#import "SandDetailCollectionHeaderView.h"
#import "Macro.h"
#import "Masonry.h"
#import "TitleView.h"
@interface SandDetailCollectionHeaderView ()

@property (nonatomic, strong) TitleView *sectionView;

@end

@implementation SandDetailCollectionHeaderView
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        
    }
    return self;
}

- (void)setSectionTitle:(NSString *)SectionTitle {
    _SectionTitle = SectionTitle;
    DDLogInfo(@"_SectionTitle2 = %@",_SectionTitle);
    _sectionView = [[TitleView alloc] initWithLineColor:[UIColor redColor] title:self.SectionTitle titleFont:TextFont17];
    
    [self addSubview:_sectionView];
    [self.sectionView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top);
        make.left.equalTo(self.mas_left);
        make.width.equalTo(self.mas_width);
        make.height.equalTo(self.mas_height);
    }];
}


@end
